package com.extension.company.view.income;

import android.app.Activity;

import com.extension.company.admin.R;
import com.extension.company.common.mvc.BaseFragment;
import com.extension.company.model.entity.IncomeData;
import com.extension.company.view.adapter.IncomeAdapter;
import com.extension.company.common.widget.PullRefreshRecyclerView;

import java.util.List;

import butterknife.BindView;

public class FragmentRecently extends BaseFragment {

    private Activity activity;

    @BindView(R.id.mRecyclerView)
    PullRefreshRecyclerView mRecyclerView;

    private List<IncomeData> list;
    private IncomeAdapter adapter;

    @Override
    public void init() {
        activity = getActivity();
        adapter = new IncomeAdapter(activity, list);
        mRecyclerView.setLinearLayout();
        mRecyclerView.setAdapter(adapter);
    }

    @Override
    public int getMainLayout() {
        return R.layout.base_recyclerview;
    }
}
